package com.kuang.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class Hello {
    @RequestMapping("/test")
    public String hello(Model model){
        model.addAttribute("msg","hello,springboot");
        return "thymeleaf";
    }

}
